Shows the window.
* Sets the icon for the window. * Supports transparency. * * Params: * image = The image (from Devisualization.Image).
Sets the icon for the window. Supports transparency.
Hides the window.
Enable / disable resizing of the window.
Closes the window. The window cannot reopened once closed. *
Gets the current context that the window has open or null for none.
Go into/out fullscreen
Has the window been closed?
Move the window to coordinate.
Resize the window.
Sets the title text.
Sets the title text.
Sets the title text.
Continues iteration of the message loop.
A single iteration of the message loop.
A window support a set number of events. From those the event offer set functionality to manipulate them.
Adds a listener on an event
void addEventName(void delegate(T)); void addEventName(bool delegate(T));
Removes the provided listener
void removeEventName(bool delegate(T)); void removeEventName(void delegate(T));
Counts how many listeners for an event
size_t countEventName();
Runs the event for all listeners with the given arguments
void eventName(T);
Clears all listeners for an event
void clearEventName();
Optionally will also support:
void eventName(T[1 .. $]);
Where T[0] is Windowable. This will run the event and pass in as first argument this (Windowable).
Events: Upon the message loop drawing period this is called.<br/> onDraw = Windowable
When the message loop is informed the window has moved, this is called.<br/> onMove = Windowable, int x, int y
When the message loop is informed the window has resized, this is called.<br/> onResize = Windowable, uint newWidth, uint newHeight
When the window has been requested to be closed from the user, this is called.<br/> On this event Windowable.close must be called manually.<br/> onClose = Windowable
A generic window interface.
Should be supportive of majority of windowing toolkits in existance. Is unaware of screens.
Implementation should support two constructors: